package com.gang.blog.domain;

import java.util.Date;
import java.util.List;

public class Article {
    private Integer articleId;

    private String articleTitle;

    private Date articleDate;

    private Integer articleReadtime;
    //user类
    private User user;
    //评论集合
    private List<Comment> comments;
    //category类
    private Category category;

    private String articleContent;

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle == null ? null : articleTitle.trim();
    }

    public Date getArticleDate() {
        return articleDate;
    }

    public void setArticleDate(Date articleDate) {
        this.articleDate = articleDate;
    }

    public Integer getArticleReadtime() {
        return articleReadtime;
    }

    public void setArticleReadtime(Integer articleReadtime) {
        this.articleReadtime = articleReadtime;
    }
  

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
    public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent == null ? null : articleContent.trim();
    }
    
    
    
	public List<Comment> getComments() {
		return comments;
	}

	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}

	@Override
	public String toString() {
		return "Article [articleId=" + articleId + ", articleTitle="
				+ articleTitle + ", articleDate=" + articleDate
				+ ", articleReadtime=" + articleReadtime + ", user=" + user
				+ ", comments=" + comments + ", category=" + category
				+ ", articleContent=" + articleContent + "]";
	}

	
	
	
    
}